﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="nRoute.Samples.Sudoku.Controls.WorkingIndicator" 
    d:DesignWidth="400" d:DesignHeight="300" mc:Ignorable="d">
	
	<UserControl.Resources>
        <Storyboard x:Name="IndicatorStoryboard" RepeatBehavior="Forever">
    		<DoubleAnimation Duration="0:0:2" From="-300" To="500" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="rectangle" d:IsOptimized="True">
    			<DoubleAnimation.EasingFunction>
    				<CubicEase EasingMode="EaseOut"/>
    			</DoubleAnimation.EasingFunction>
    		</DoubleAnimation>
    	</Storyboard>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" >
    	<Grid.Background>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#7F000000" Offset="0.996"/>
					<GradientStop Color="#7F000000"/>
				</LinearGradientBrush>
    	</Grid.Background>
    	<Rectangle x:Name="rectangle" RadiusY="0" RadiusX="0" StrokeStartLineCap="Flat" StrokeEndLineCap="Flat" Stroke="White" StrokeThickness="0" StrokeMiterLimit="10" StrokeLineJoin="Miter" Height="5" VerticalAlignment="Top" Width="250" HorizontalAlignment="Left" RenderTransformOrigin="0.5,0.5">
    		<Rectangle.Fill>
    			<LinearGradientBrush EndPoint="1.048,0.8" StartPoint="-0.073,1.209">
    				<GradientStop Offset="0.568"/>
    				<GradientStop Color="White" Offset="1"/>
    				<GradientStop Color="White" Offset="0.568"/>
    				<GradientStop Color="White" Offset="0.472"/>
    				<GradientStop Offset="0.472"/>
    			</LinearGradientBrush>
    		</Rectangle.Fill>
    		<Rectangle.RenderTransform>
    			<CompositeTransform/>
    		</Rectangle.RenderTransform>
    	</Rectangle>
	</Grid>
</UserControl>

